package mc.support.taobao.api;

import com.taobao.api.TaobaoRequest;
import com.taobao.api.request.ItemUpdateListingRequest;
import com.taobao.api.response.ItemUpdateListingResponse;

/**
 * Created with IntelliJ IDEA. <br/>
 * Author: wangming    <br/>
 * Date: 2014-11-25  <br/>
 */
public class UpdateListingReq extends AbstractReq<UpdateListingReq, ItemUpdateListingResponse> {
    private Long numIid;
    private Long num;

    public UpdateListingReq numId( Long numIid ) {
        this.numIid = numIid;
        return this;
    }

    public UpdateListingReq num( Long num ) {
        this.num = num;
        return this;
    }

    @Override
    protected TaobaoRequest toRequest() {
        ItemUpdateListingRequest req = new ItemUpdateListingRequest();
        if ( null != numIid ) {
            req.setNumIid( numIid );
        }
        if ( null != num ) {
            req.setNum( num );
        }
        return req;
    }
}
